/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package terminal.model;

import terminal.interfaces.ISerialConfiguration;
import terminal.interfaces.ISerialModel;
import terminal.interfaces.ISerialPort;

/**
 *
 * @author prpo4526
 */
public class SerialModel implements ISerialModel {
    
    public SerialModel()
    {
        m_serialConfiguration = new SerialConfiguration();
        m_serialPortDataProcessor = new SerialPortDataProcessor();
        
        m_SerialPort = new SerialPort( m_serialPortDataProcessor );
    }
    
    @Override public ISerialConfiguration getSerialConfiguration()
    {
        return m_serialConfiguration;
    }
    
    @Override public ISerialPort getSerialPort()
    {
        return m_SerialPort;
    }
    
    public SerialPortDataProcessor getDataProcessor()
    {
        return m_serialPortDataProcessor;
    }
    
    SerialConfiguration m_serialConfiguration;
    SerialPort m_SerialPort;
    SerialPortDataProcessor m_serialPortDataProcessor;
}
